﻿<UserControl x:Class="TinyEngineEditor.SceneViewer.SceneViewer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="48" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Border>
            <StackPanel Orientation="Horizontal" Margin="12,6,12,6" VerticalAlignment="Center">
                <TextBlock Text="Zoom" Margin="0,0,6,0" VerticalAlignment="Center" />
                <Slider Name="sliderZoom" Minimum="0" Maximum="2" Value="1" Width="50" VerticalAlignment="Center" ValueChanged="sliderZoom_ValueChanged"  />
                <TextBlock Text="X" Margin="12,0,6,0" VerticalAlignment="Center" />
                <Slider Name="sliderX" Minimum="-1" Maximum="1" Value="0" Width="50" VerticalAlignment="Center" LostMouseCapture="sliderX_LostMouseCapture" ValueChanged="sliderX_ValueChanged" GotMouseCapture="sliderY_GotMouseCapture"  />
                <TextBlock Text="Y" Margin="12,0,6,0" VerticalAlignment="Center" />
                <Slider Name="sliderY" Orientation="Vertical" Minimum="-1" Maximum="1" Value="0" Height="50"  LostMouseCapture="sliderX_LostMouseCapture" VerticalAlignment="Center" ValueChanged="sliderY_ValueChanged" GotMouseCapture="sliderY_GotMouseCapture" />
            </StackPanel>
        </Border>
        <WindowsFormsHost HorizontalAlignment="Stretch" Name="windowsFormsHost1" VerticalAlignment="Stretch" Grid.Row="1" />
    </Grid>
</UserControl>
